<?php
class SideBarHelper extends AppHelper {
	
	public function MakeMenu($items, $message) {
		echo '
				<div class="art-layout-cell art-sidebar1">
     								<div class="art-vmenublock clearfix">
        								<div class="art-vmenublockcontent">';
		if (!empty($items)) {
			echo '<ul class="art-vmenu">';
			foreach ($items as $key => $value):
				if (is_array($value)){
					foreach ($value as $subkey => $subvalue):
					echo 	'<li>
								<a href="'.$subvalue.'" target="'.$subkey.'">
								'.$key.'
								</a>
						</li>';					
					endforeach;

				} else {
					echo 	'<li>
								<a href="'.$value.'">
								'.$key.'
								</a>
						</li>';
				}

			endforeach;
			echo '</ul>';
		}
		//echo $items; 
		/*
		 * <!-- 
											<ul class="art-vmenu">
												<li>
													<a href="home.html" class="active">
														Home
													</a>
													<ul class="active">
														<li>
															<a href="home/new-page.html">
																Subpage 1
															</a>
														</li>
														<li>
															<a href="home/new-page-2.html">
																Subpage 2
															</a>
														</li>
														<li>
															<a href="home/new-page-3.html">
																Subpage 3
															</a>
														</li>
													</ul>
												</li>
												<li>
													<a href="blog.html">
														Blog
													</a>
												</li>
											</ul>
										 -->
		 * */
        echo '									
        								</div>
									</div>
									<div class="art-block clearfix">
        								<div class="art-blockcontent">';
 		echo $message;
		echo '						</div>
								</div>
							</div>
				';
	}
}